import React from 'react'

const LogFilter = (props) => {

  const changeYearHandler = (e)=>{
    props.onChangeYear(+e.target.value)
  }  

  return (
    <div>年份：
        <select value={props.year} onChange={changeYearHandler}>
            <option>2020</option>
            <option>2021</option>
            <option>2022</option>
        </select>
    </div>
  )
}

export default LogFilter